package com.example.crm.service.Imp;

import com.example.crm.entity.Chance;
import com.example.crm.mapper.ChanceMapper;
import com.example.crm.service.ChanceService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ChanceServiceImp implements ChanceService {
    @Resource
    private ChanceMapper chanceMapper;

    @Override
    public List<Chance> finAll() {
        return chanceMapper.finAll();
    }

    @Override
    public List<Chance> finNameAndTitle(String name, String title,  Integer current,  Integer pageSize) {
        return chanceMapper.finNameAndTitle(name,title,current,pageSize);
    }

    @Override
    public Chance finId(Integer id) {
        return chanceMapper.finId(id);
    }

    @Override
    public int updChance(Chance chance) {
        return chanceMapper.updChance(chance);
    }

    @Override
    public int allChance(Chance chance) {
        return chanceMapper.allChance(chance);
    }

    @Override
    public int delChance(Integer id) {
        return chanceMapper.delChance(id);
    }

    @Override
    public int count(String name, String title) {
        return chanceMapper.count(name,title);
    }


}
